package com.tiancikeji.zaoke.app.service.bill.impl.alipay;

import java.io.IOException;
import java.util.Properties;

public class AlipayWapConfig {

    public AlipayWapConfig() throws IOException {

        Properties prop = new Properties();

        prop.load(getClass().getResourceAsStream("/alipay-wap.properties"));

        partner_id = prop.getProperty("partner_id");
        seller_account_name = prop.getProperty("seller_account_name");
        sec_id = prop.getProperty("sec_id");
        key = prop.getProperty("key");
        req_url = prop.getProperty("req_url");
        notify_url = prop.getProperty("notify_url");
        merchant_url = prop.getProperty("merchant_url");
        service_create = prop.getProperty("service_create");
        service_auth = prop.getProperty("service_auth");
        call_back_url = prop.getProperty("call_back_url");
        format = prop.getProperty("format");
        version = prop.getProperty("version");
        encoding = prop.getProperty("encoding");
        /*if (Env.CURRENT.toString().startsWith("TEST") ) {
            partner_id = "2088201564809153";
            seller_account_name = "alipay-test12@alipay.com";
            key = "umz4aea6g97skeect0jtxigvjkrimd0o";
        }*/

    }

    private String partner_id;

    private String seller_account_name;

    private String sec_id;

    private String key;

    private String req_url;

    private String notify_url;

    private String merchant_url;

    private String service_create;

    private String service_auth;

    private String call_back_url;

    private String format;

    private String version;

    private String encoding;

    public String getPartner_id() {
        return partner_id;
    }

    public String getSeller_account_name() {
        return seller_account_name;
    }

    public String getSec_id() {
        return sec_id;
    }

    public String getKey() {
        return key;
    }

    public String getReq_url() {
        return req_url;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public String getMerchant_url() {
        return merchant_url;
    }

    public String getService_create() {
        return service_create;
    }

    public String getService_auth() {
        return service_auth;
    }

    public String getCall_back_url() {
        return call_back_url;
    }

    public String getFormat() {
        return format;
    }

    public String getVersion() {
        return version;
    }

    public String getEncoding() {
        return encoding;
    }

}